package com.team5101.controller;

import com.team5101.entity.NextFilm;
import com.team5101.entity.NowFilm;
import com.team5101.entity.VO.SearchFilmVO;
import com.team5101.service.ISearchFilmService;
import com.team5101.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.ArrayList;
@RestController
@RequestMapping("api/search")
public class SearchFilmController {

    @Autowired
    private ISearchFilmService searchFilmService;

    @RequestMapping("name")
    public R searchfilmbyname(String name){
        List<NextFilm> nextfilms = searchFilmService.getnextfilm(name);
        List<NowFilm> nowFilms = searchFilmService.getnowfilm(name);
        List<SearchFilmVO> arrayList = new ArrayList<SearchFilmVO>();

        return R.error();
    }
}
